package top.kaoshanji.p2ch15a;

/**
 * 代码清单-p2ch15a-432页a：通过实现Runnable创建线程
 * author kaoshanji
 * ^_^
 * create time 2025/2/23 11:01
 */
public class HelloRunnable implements Runnable {

    @Override
    public void run() {
        System.out.println("hello");
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new HelloRunnable());
        thread.start();
    }

}
